from functools import wraps

def my_decorator(f):
    @wraps(f)
    def wrapper(*args, **kwargs):
        print("Decorating function")
        return f(*args, **kwargs)
    return wrapper

@my_decorator
def example():
    """Docstring for example."""
    print("Inside example function")

example()
print(example.__name__)  # 输出：example
print(example.__doc__)   # 输出：Docstring for example.